﻿<%@ Page Title="" Language="C#" MasterPageFile="~/huongnghiep/frontend.Master" AutoEventWireup="true" CodeBehind="detail.aspx.cs" Inherits="VQWEB.huongnghiep.news.detail" %>
<asp:Content ID="Head" ContentPlaceHolderID="Head" runat="server"></asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">    
    <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12 f-content-left">
        <!-- Thanh điều hướng -->
        <ol class="breadcrumb" id="plbrc">
            <li><a href="/trang-chu.html">Trang chủ</a></li>
        </ol>
        <!--/ Thanh điều hướng -->
        <div class="row f-row">
            <div class="container ffff">
            <!--/ bat dau phan content trong admin -->
            <div class="col-lg-12 f-detail" id="pldetail">
                <!-- detail news goes here -->
            </div>
            <!--/ Kết thúc phần content trong admin -->
        </div> 
        </div>
        <div class="row f-row">
        <div class="container ffff">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 f-color group">
            <h4 class="f-tab"><i class="glyphicon glyphicon-list"> </i> Tin liên quan</h4>
            </div>
        </div>
        </div>
        <ul class="list-unstyled" id="plrelated">
            <!-- related goes here -->
        </ul>
    </div><!--/ Page content left -->        
</asp:Content>
<asp:Content ID="Script" ContentPlaceHolderID="Script" runat="server">
    <script src="/js/jquery.jqote2.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#auto").tooltip({
                placement: "auto",
                title: "tooltip on auto"
            });
        });
    </script>
    <script type="text/javascript">
        var url_ashx = "/news/handler";
        function getNews() {
            $.post(url_ashx, { detail: "detail" }, function (data) {
                var jsonData = $.parseJSON(data);
                $.get('/huongnghiep/templates/news/detail.tpl', function (tmpl) {
                    $("#pldetail").jqoteapp(tmpl, jsonData);
                    $(document).attr("title", jsonData.news_title);
                });
                $.get('/huongnghiep/templates/news/breadcrumb.tpl', function (tmpl) {
                    $("#plbrc").jqoteapp(tmpl, jsonData);
                });
                $.get('/huongnghiep/templates/news/related.tpl', function (tmpl) {
                    $("#plrelated").jqoteapp(tmpl, jsonData.related);
                });
            });
        }
        getNews();
    </script>
</asp:Content>
